package com.test.mymall.product;

//import com.aliyun.oss.OSS;
//import com.aliyun.oss.OSSClientBuilder;
//import com.aliyun.oss.model.PutObjectRequest;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.File;


@SpringBootTest
class MallProductApplicationTests2 {


    private static String endpoint = "oss-cn-beijing.aliyuncs.com";
    private static String accessKeyId = "LTAI5tPy1BEpGEsgVsd7hSQT";
    private static String accessKeySecret = "AAH593Jh6RLFQA3A1UsWWlEgxL64Kx";
    private static String bucketName = "mymall202505";



    @Test
    void contextLoads() {
//        OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
//        PutObjectRequest putObjectRequest = new PutObjectRequest(bucketName, "oppo.png",new File("D:\\oppo.png"));
//        //上传文件
//        ossClient.putObject(putObjectRequest);
    }

}
